@import '~@/assets/scss/function';

.repay {
  padding: 90px 40px 200px;
  min-height: 100vh;
  background: #F6F6F9;
  &.repay-detail {
    background: #F7F9FA;
    .error {
      color: #666;
      text-align: center;
    }
    // height: 100vh;
  }

  .main {
    margin: 80px 0 0;
    padding: 48px 28px;
    background: #FFFFFF;
    border-radius: 16px;
    .repay_methods {
      &:not(:last-child) {
        margin-bottom: 32px;
      }
      .repay_title {
        color: #111;
        font-size: 32px;
        line-height: 40px;
        font-weight: bold;
        margin-bottom: 16px;
      }
      p.warning {
        color: red;
        margin-top: 10px;
        font-size: 26px;
      }
      ul {
        li {
          height: 96px;
          position: relative;
          display: flex;
          align-items: center;
          padding: 0 70px 0 16px;
          color: #333;
          font-size: 32px;
          text-align: center;
          border: 1px solid #EBEBEB;
          border-radius: 16px;
          margin-bottom: 16px;
          & > img {
            width: 200px;
            height: 80px;
            margin-right: 8px;
          }
          &::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 24px;
            width: 40px;
            height: 40px;
            background: url('~@/assets/imgs/icon/icon_right_3.png');
            background-size: cover;
          }
        }
      }
    }
  }

  .detail-main {
    margin: 18px 0;
    .repay_type_title {
      height: 90px;
      line-height: 90px;
      color: #333333;
      font-size: 28px;
      font-weight: bold;
      // border-bottom: 1px solid #DDDDDD;
    }

    .repay_panel {
      background: #FFFFFF;
      border-radius: 16px;
      padding: 22px 10px 18px;
      .repay_step {
        line-height: 32px;
        margin-bottom: 50px;
        li {
          display: flex;
          font-size: 28px;
          padding: 18px 0;
          .index {
            width: 28px;
            text-align: center;
            margin-right: 12px;
            color:#EC5958;
            font-size: 28px;
            font-weight: bold;
          }
          .repay-text {
            flex: 1;
            color: #333333;
            line-height: 36px;
          }
        }

        // li + li {
        //   margin-top: 36px;
        // }

        .instapay {
          color: #A01324;
          text-align: center;
        }
      }
      .qr-tips {
        text-align: center;
        font-size: 24px;
        color: #666;
        margin-bottom: 40px;
        & > p {
          font-size: 28px;
          color: #EC5958;
          margin-top: 8px;
        }
      }

      .help_link {
        display: block;
        color: #EC5958;
        font-size: 28px;
        width: 180px;
        margin: 0 auto;
        text-align: center;
      }

      .desc_7_11 {
        color: #999;
        font-size: 24px;
        text-align: center;
        margin-bottom: 32px;
      }

      .link_btn_red {
        text-align: center;
        margin-bottom: 58px;

        a {
          border: 1px solid #B8505C;
          border-radius: 8px;
          padding: 12px 24px;
          color: #A01324;
        }
      }
    }
  }
  .btn_repay {
    width: 100%;
  }
}



// 还款弹框信息确认弹框
.Xendit_repay {
  width: 710px;
  border-radius: 16px;

  .repay_info {
    padding: 60px 56px 70px;

    .form_item.Xendit {
      .value {
        position: relative;

        input {
          width: 100%;
          height: 100px;
          line-height: 100px;
          color: #666666;
          font-size: 32px;
          background: #F9F9F9;
          border-radius: 4px;
          padding: 0 40px;
          border: none;
        }

        ::placeholder {
          color: #999999;
          font-size: 32px;
        }

        .btn_clear {
          display: block;
          width: 44px;
          height: 44px;
          background: transparent url("~@/assets/imgs/icon_clear.svg") center no-repeat;
          position: absolute;
          top: 28px;
          right: 28px;
        }
      }

      .tips {
        font-size: 26px;
        color: #222222;
        line-height: 1;
        font-weight: 500;
        margin-top: 16px;

        &.red_color {
          color: $red;
        }
      }
    }
  }

  .van-hairline--top.van-dialog__footer {
    &:after {
      border-top-width: 1px;
      border-top-color: #E7E7E7;
    }

    .van-button:after {
      border-left-width: 1px;
      border-left-color: #E7E7E7;
    }

    .van-dialog__cancel {
      font-size: 40px;
      color: #999999;
    }

    .van-dialog__confirm {
      font-size: 40px;
    }
  }
}

// 展示还款码
.show_repay_code {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;

  .repay_code_contain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 710px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;

    .repay_code_copy {

      .repay_code_copy_content {
        text-align: center;
        color: #222222;
        font-size: 40px;
        overflow: hidden;

        .title {
          margin-top: 68px;
          color: #333333;
          font-size: 36px;
          line-height: 1;
          font-weight: normal;
        }

        .code {
          color: #EC5958;
          font-size: 44px;
          text-align: center;
          overflow-wrap: break-word;
          line-height: 100px;
          height: 100px;
          border-radius: 4px;
          width: 90%;
          margin: 6% auto;
        }

        .btn_copy {
          color: #EC5958;
          font-size: 40px;
          font-weight: 400;
          height: 100px;
          line-height: 100px;
          text-align: center;
          border-top: 1px solid #E7E7E7;
        }
      }
    }
    .download {
      display: block;
      margin: 40px auto 0;
      width: 200px;
      height: 80px;
      color: #fdff;
      background-color: #EC5958;
    }

    .btn_close {
      background: url("~@/assets/imgs/icon/icon_close.png") center/contain no-repeat;
      width: 64px;
      height: 64px;
      display: block;
      position: absolute;
      bottom: -94px;
      left: 50%;
      transform: translate(-50%);
    }

    .repay_panel {
      border-radius: 16px;

      .repay_img {
        text-align: center;
        color: #222222;
        font-weight: bold;
        border-radius: 16px;
        overflow: hidden;
        padding-top: 20px;

        .repay_tips {
          display: none;
          color: #FFFFFF;
          font-size: 30px;
          font-weight: bold;
          line-height: 1;
          margin: 34px 0 24px;
        }
        

        .repay_code_copy {
          margin: 84px auto 38px;
          line-height: 1;
          background-color: #ffffff;
          border-radius: 8px;
          text-align: center;

          .repay_code_copy_content {

            .title {
              font-size: 28px;
              font-weight: 400;
              color: #999;
              margin-top: 0;
            }

            .code {
              font-size: 36px;
              font-weight: 500;
              color: #333333;
              height: auto;
              padding: 0;
              margin: 0;
              text-align: center;
              width: 100%;
            }

            .btn_copy {
              color: #FFFFFF;
              font-size: 24px;
              font-weight: bold;
              width: 212px;
              height: 56px;
              line-height: 56px;
              text-align: center;
              background: #EC5958;
              border-radius: 28px;
              margin: 0 auto;
              border: none;
            }
          }
        }

        .repay_code_img {
          width: 410px;
          display: block;
          margin: 0 auto;
          background-color: #FFFFFF;

          img {
            max-width: 410px;
          }
        }

      }
    }
  }
  
}


.van-dialog__confirm, .van-dialog__confirm:active {
  color: $mainColor;
}
